
#include <cv.h>
#include <ml.h>
using namespace cv;

int main(int argc, char **argv) {

	int sampleCountForTesting = 2731; //BROKEN: Breaks for values of 2731 or greater!
	Mat trainingData( sampleCountForTesting, 10000, CV_32FC1, Scalar::all(-1.0) );
	Mat trainingResponses( sampleCountForTesting, 1, CV_32FC1, Scalar::all(-1.0) );
	
	for(int j = 0; j < 6; j++) {
		trainingData.at<float>( j, 0 ) = (float) 1.0;
		trainingResponses.at<float>( j, 0 ) = (float) 1.0;
	}
	
	//CvMat
	//Try weights?
	
//	CvSVMParams svmParams( 100, //100 is CvSVM::C_SVC,
//						  2, //2 is CvSVM::RBF,
//						  1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
//						  NULL,
//						  TermCriteria( TermCriteria::MAX_ITER | TermCriteria::EPS, 2, 1.0 ) );
//	CvSVM svm = CvSVM();
//	svm.train_auto( trainingData, trainingResponses, Mat(), Mat(), svmParams );
	
	//CvBoostParams( 
	
	CvBoost boost;
	
	boost.train( trainingData, CvBoost::REAL, trainingResponses ); //NULL, NULL, NULL, NULL, 
	
	return 0;
}









